package com.szit.adminserver.dao;

import com.szit.adminserver.entity.AdminRolePermission;

public interface AdminRolePermissionMapper {
    int deleteByPrimaryKey(Integer rolePermissionId);

    int insert(AdminRolePermission record);

    int insertSelective(AdminRolePermission record);

    AdminRolePermission selectByPrimaryKey(Integer rolePermissionId);

    int updateByPrimaryKeySelective(AdminRolePermission record);

    int updateByPrimaryKey(AdminRolePermission record);

    /**
     * 根据roleId查找多少个
     * @param roleId
     * @return
     */
    Integer selectCountByRoleId(Integer roleId);

    /**
     * 根据permissionId查找多少个
     * @param permissionId
     * @return
     */
    Integer selectCountByPermissionId(Integer permissionId);

    AdminRolePermission selectByRoleId(Integer roleId);
}